from django.urls import path,re_path,include
from . import views


app_name = 'news'
urlpatterns = [

    # 注册
    path('register/', views.register, name='register'),
    # 注册验证
    path('register_check/', views.register_check, name='register_check'),
    # 验证码验证
    path('code/', views.code, name='code'),


    # 登录
    path('log/',views.log, name='log'),
    # 登录验证
    re_path(r'^base/', include([
        path('upload/', views.upload, name='upload'),
        path('base/', views.base, name='base'),
    ])),


    # 修改密码
    path('pwd/', views.pwd, name='pwd'),
    # 修改密码验证
    path('pwd_check', views.pwd_check, name='pwd_check'),
    # 修改密码
    path('xgmm/', views.xgmm, name='xgmm'),


    # 个人信息
    path('people/', views.people, name='people'),


    # 忘记密码
    path('forget/',views.forget, name='forget'),
    # 验证忘记密码
    path('forget_password/', views.forget_password, name='forget_password'),
    # 重置密码
    path('chongzhi/', views.chongzhi, name='chongzhi'),





    # 我的会员
    path('hy/', views.hy, name='hy'),


    # 会员充值
    path('hycz/',views.hycz, name='hycz'),


    # 我的发布
    path('fabu/', views.fabu, name='fabu'),
    path('news_list', views.news_list, name='news_list'),

    # 发布内容
    path('fbnr/', views.fbnr, name='fbnr'),
    # 发布成功
    path('fbcg/', views.fbcg, name='fbcg'),
    # 发布内容验证
    path('fbyz/',views.fbyz,name = 'fbyz'),

    # 积分
    path('jifen/', views.jifen, name='jifen'),

    # 积分兑换
    path('jfdh/', views.jfdh, name='jfdh'),

    # 积分兑换验证,发布文章减积分
    path('reduce_jf/', views.reduce_jf, name='reduce_jf'),


    # 退出登录
    path('log_out/', views.log_out, name='log_out'),



    # 编辑器
    path('editor/', views.editor, name='editor'),


    # path('show_goods/', views.show_goods, name='show_goods'),


    # 新闻首页
    path('base_news/', views.base_news, name='base_news'),
    # 首页---ajax 加载更多新闻
    path('base_news/ajax/', views.base_news_ajax, name='base_news_ajax'),



    # 新闻详情
    path('news_xq/', views.news_xq, name='news_xq'),

    #新闻展示
    # path('news_zs/', views.news_zs, name='news_zs'),


    # 快讯
    path('news_kx/', views.news_kx, name='news_kx'),
    path('play/', views.play, name='play'),

    # 快讯详情
    path('news_kxxq/', views.news_kxxq, name='news_kxxq'),

    # 消息通知
    path('xxtz/', views.xxtz, name='xxtz'),


    # 分页
    path('article_list/', views.art_lists, name='article_list'),

    # 点赞,分享
    path('dz/', views.dz, name='dz'),

    # 评论
     path('comm/', views.comm, name='comm'),
]

